package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 维修管理表对象 repair
 *
 * @author ruoyi
 * @date 2023-11-03
 */
@Data
public class Repair extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 维修编号 */
    @Excel(name = "维修编号")
    private String rno;

    /** 维修日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "维修日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date repairDate;

    /** 维修数量 */
    @Excel(name = "维修数量")
    private Long repairCount;

    /** 维修费用 */
    @Excel(name = "维修费用")
    private Long repairWages;

    /** 维修申请人 */
    @Excel(name = "维修申请人")
    private String repairApplicant;

    /** 维修申请日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "维修申请日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date repairAppdate;

    /** 维修详情id */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long repairId;

    @Excel(name = "维修详情列表")
    private List<RepairDetail> repairDetailList;

    //审批状态:1审批中,2已通过,3已驳回
    private String status;
}
